package com.yx.learn.dao;

import java.util.List;

import com.yx.learn.domain.Company;

public interface CompanyDao {

	public void saveCompany(Company company)throws Exception;

	public void deleteCompany(Company company)throws Exception;

	public void updateCompany(Company company)throws Exception;

	public Company findById(int id)throws Exception;

	public List<Company> findAllCompanies()throws Exception;

	public List<Company> findCompanies(String hql)throws Exception;
	
	public List<Company> findCompanies(String hql, int pageNumber, int pageSize)throws Exception;

}
